WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::LocalParametrizationBase Class Referenceabstract

Base class of local parametrizations: plus and minus operations of a state with increments in its tangent space. More...

#include <core/state_block/local_parametrization_base.h>

Inheritance diagram for wolf::LocalParametrizationBase:
[legend]

Public Member Functions

 LocalParametrizationBase (unsigned int _global_size, unsigned int _local_size)
 Constructor from the sizes of the state and its tangent space. More...
 
virtual ~LocalParametrizationBase ()
 Destructor. More...
 
bool plus (const Eigen::VectorXd &_x, const Eigen::VectorXd &_delta, Eigen::VectorXd &_x_plus_delta) const
 Plus operation: applies a local increment to a state. More...
 
virtual bool plus (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< const Eigen::VectorXd > &_delta, Eigen::Map< Eigen::VectorXd > &_x_plus_delta) const =0
 Plus operation on Eigen maps (see the overload above) More...
 
virtual bool computePlusJacobian (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< Eigen::MatrixRowXd > &_jacobian) const =0
 Computes the Jacobian of the plus operation wrt the local increment, at zero increment. More...
 
virtual bool minus (Eigen::Map< const Eigen::VectorXd > &_x1, Eigen::Map< const Eigen::VectorXd > &_x2, Eigen::Map< Eigen::VectorXd > &_x2_minus_x1) const =0
 Minus operation: computes the local increment between two states NOTE: This function computes x2 (minus) x1 ! More...
 
virtual bool computeMinusJacobian (Eigen::Map< const Eigen::VectorXd > &_x, Eigen::Map< Eigen::MatrixRowXd > &_jacobian) const =0
 Computes the Jacobian of the minus operation (x2 minus x) wrt x2, at x2 = x. More...
 
virtual bool isValid (const Eigen::VectorXd &state, double tolerance) const =0
 Returns whether a state is valid (e.g. a unit quaternion), up to a tolerance. More...
 
unsigned int getLocalSize () const
 Returns the size of the tangent space. More...
 
unsigned int getGlobalSize () const
 Returns the size of the state. More...
 

Protected Attributes

unsigned int global_size_
 Size of the state. More...
 
unsigned int local_size_
 Size of the tangent space. More...
 

Detailed Description

Base class of local parametrizations: plus and minus operations of a state with increments in its tangent space.

Constructor & Destructor Documentation

◆ LocalParametrizationBase()

wolf::LocalParametrizationBase::LocalParametrizationBase ( unsigned int  _global_size,
unsigned int  _local_size 
)

Constructor from the sizes of the state and its tangent space.

◆ ~LocalParametrizationBase()

wolf::LocalParametrizationBase::~LocalParametrizationBase ( )
virtual

Destructor.

Member Function Documentation

◆ computeMinusJacobian()

virtual bool wolf::LocalParametrizationBase::computeMinusJacobian ( Eigen::Map< const Eigen::VectorXd > &  _x,
Eigen::Map< Eigen::MatrixRowXd > &  _jacobian 
) const
pure virtual

◆ computePlusJacobian()

virtual bool wolf::LocalParametrizationBase::computePlusJacobian ( Eigen::Map< const Eigen::VectorXd > &  _x,
Eigen::Map< Eigen::MatrixRowXd > &  _jacobian 
) const
pure virtual

Computes the Jacobian of the plus operation wrt the local increment, at zero increment.

Parameters
_xthe state
_jacobianthe Jacobian matrix
Returns
true if successful

Implemented in wolf::LocalParametrizationAngle, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationQuaternion< DeltaReference >.

◆ getGlobalSize()

unsigned int wolf::LocalParametrizationBase::getGlobalSize ( ) const

Returns the size of the state.

◆ getLocalSize()

unsigned int wolf::LocalParametrizationBase::getLocalSize ( ) const

Returns the size of the tangent space.

◆ isValid()

virtual bool wolf::LocalParametrizationBase::isValid ( const Eigen::VectorXd &  state,
double  tolerance 
) const
pure virtual

Returns whether a state is valid (e.g. a unit quaternion), up to a tolerance.

Implemented in wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationAngle.

◆ minus()

virtual bool wolf::LocalParametrizationBase::minus ( Eigen::Map< const Eigen::VectorXd > &  _x1,
Eigen::Map< const Eigen::VectorXd > &  _x2,
Eigen::Map< Eigen::VectorXd > &  _x2_minus_x1 
) const
pure virtual

Minus operation: computes the local increment between two states NOTE: This function computes x2 (minus) x1 !

Parameters
_x1the first state
_x2the second state
_x2_minus_x1the resulting local increment
Returns
true if successful

Implemented in wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, wolf::LocalParametrizationQuaternion< DeltaReference >, and wolf::LocalParametrizationAngle.

◆ plus() [1/2]

bool wolf::LocalParametrizationBase::plus ( const Eigen::VectorXd &  _x,
const Eigen::VectorXd &  _delta,
Eigen::VectorXd &  _x_plus_delta 
) const

Plus operation: applies a local increment to a state.

Parameters
_xthe state
_deltathe local increment
_x_plus_deltathe resulting state after applying the increment
Returns
true if successful

◆ plus() [2/2]

virtual bool wolf::LocalParametrizationBase::plus ( Eigen::Map< const Eigen::VectorXd > &  _x,
Eigen::Map< const Eigen::VectorXd > &  _delta,
Eigen::Map< Eigen::VectorXd > &  _x_plus_delta 
) const
pure virtual

Member Data Documentation

◆ global_size_

unsigned int wolf::LocalParametrizationBase::global_size_
protected

Size of the state.

◆ local_size_

unsigned int wolf::LocalParametrizationBase::local_size_
protected

Size of the tangent space.


The documentation for this class was generated from the following files: